package com.zoweunion.mechanic.plugins.jms;//package com.zoweunion.mechanic.plugins.jms;
//
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.jms.annotation.JmsListener;
//import org.springframework.stereotype.Component;
//
///**
// * 消息接受者
// * @author wangchunwei
// *
// */
//@Component
//public class JMSConsumer {
//
//	private final static Logger logger = LoggerFactory.getLogger(JMSConsumer.class);
//
//	@JmsListener(destination = JmsConfig.TOPIC,containerFactory = "jmsListenerContainerQueue")
//    public void onTopicMessage1(String msg) {
//		System.out.println("接收到topic消息：{}"+msg);
//        logger.info("接收到topic消息：{}",msg);
//    }
////	@JmsListener(destination = JmsConfig.TOPIC)
////	public void onTopicMessage(String msg) {
////		System.out.println("接收到topic消息：{}"+msg);
////		logger.info("接收到topic消息：{}",msg);
////	}
//
//    @JmsListener(destination = JmsConfig.QUEUE,containerFactory = "jmsListenerContainerQueue")
//    public void onQueueMessage1(String msg) {
//    	System.out.println("接收到topic消息：{}"+msg);
//        logger.info("接收到queue消息：{}",msg);
//    }
//    @JmsListener(destination = JmsConfig.QUEUE,containerFactory = "jmsListenerContainerQueue")
//    public void onQueueMessage(String msg) {
//    	System.out.println("接收到QUEUE消息：{}"+msg);
//    	logger.info("接收到queue消息：{}",msg);
//    }
//
//    @JmsListener(destination = JmsConfig.TOPIC,containerFactory = "jmsListenerContainerQueue")
//    public void test1(String msg) {
//    	System.out.println("接收到topic消息：{}"+msg);
//    	System.out.println("我也监听topic"+msg);
//    }
//    @JmsListener(destination = JmsConfig.TOPIC,containerFactory = "jmsListenerContainerTopic")
//    public void test2(String msg) {
//    	System.out.println("接收到topic消息：{}"+msg);
//    	System.out.println("我也监听topic"+msg);
//    }
////    @JmsListener(destination = JmsConfig.TOPIC)
////    public void test(String msg) {
////    	System.out.println("接收到topic消息：{}"+msg);
////    	//System.out.println("我也监听topic"+msg);
////    }
//
//}